package cn.wd.user.service;


import cn.wd.user.domain.entity.Video;
import cn.wd.user.page.PageResult;
import cn.wd.user.qo.QueryObject;
import cn.wd.user.qo.VideoQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IVideoService extends IService<Video> {

    Video getById(String videoId);

    default PageResult query(QueryObject qo) {
        return PageResult.empty(qo.getCurrentPage(), qo.getPageSize());
    }

    void changeStatus(Long id, String status);

    // void updateById(Video video);

    // void save(Video video);

    void deleteById(Long id, boolean deleted);

    Page<Video> listVideoPage(VideoQuery qo);
}